package vn.co.thn.web.hotvideo.api;

import javax.ws.rs.POST;
import javax.ws.rs.Path;
import javax.ws.rs.Produces;

import com.google.gson.Gson;

import vn.co.thn.web.hotvideo.json_object.Json_Category;
import vn.co.thn.web.hotvideo.model.CategoryModel;

@Path("/category")
public class ApiCategory {
	private CategoryModel categoryModde=new CategoryModel();
	@Path("/list")
	@POST
	@Produces("application/json")
	public String list() {
		return new Gson().toJson(new Json_Category(categoryModde.getList()));
	}
}
